clear all
set more off
cap log close

***************************************************************************************************
* Program: master.do
* Purpose: Define globals for directories and run programs
***************************************************************************************************

* Set directories 
* Replace "yourdirectory" the local directory in which you've downloaded the Replication Archive

global master_dir  "yourdirectory"
global Code "${master_dir}/Code"
global DataRaw "${master_dir}/DataRaw"
global Arrest_Stop "${DataRaw}/Arrest_Stop"
global BG_boundary "${DataRaw}/census_bg_boundary"
global city_bg "${DataRaw}/city_bg"
global DataCleaned "${master_dir}/DataCleaned"
global Output "${master_dir}/Output"

cd "${master_dir}"

***************************************************************************************************
* Run programs

* run "${Code}/1-measure_police_time.do"
run "${Code}/2-prepare_analysis_data.do"
run "${Code}/3-analysis_main_paper.do"
run "${Code}/4-analysis_appendix.do"

* Also need to run R program in "Code/figure2_3.rmd"
